home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / Moss / Vitra.dir / 00014_UI Rollover Change Pointer .ls < prev    next >
Encoding:
Text File  |  1999-03-01  |  931 b   |  25 lines

  1. property outcurs, incurs, incursSet, customImage, customMask, oldcursor, useCustom
  2.  
  3. on translate_cursor me, setting, image, mask, Custom
  4.   if Custom then
  5.     set val to [member image, member mask]
  6.     return val
  7.   end if
  8.   return setting
  9. end
  10.  
  11. on beginSprite me
  12.   set oldcursor to the cursor of sprite the spriteNum of me
  13.   set val to translate_cursor(me, the incursSet of me, customImage, customMask, useCustom)
  14.   set the cursor of sprite the spriteNum of me to val
  15. end
  16.  
  17. on endSprite me
  18.   set the cursor of sprite the spriteNum of me to oldcursor
  19. end
  20.  
  21. on getPropertyDescriptionList
  22.   set p_list to [#incursSet: [#comment: "Pointer Image:", #format: #cursor, #default: 1], #useCustom: [#comment: "Use Custom Pointer:", #format: #boolean, #default: 0], #customImage: [#comment: "Custom Image:", #format: #bitmap, #default: member 1], #customMask: [#comment: "Custom Mask:", #format: #bitmap, #default: member 1]]
  23.   return p_list
  24. end
  25.